package cn.smvc.task.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.smvc.task.dao.TTimedTaskContactDao;
import cn.smvc.task.entity.TTimedTaskContact;
import cn.smvc.task.service.TTimedTaskContactService;

@Service
public class TTimedTaskContactServiceImpl implements TTimedTaskContactService{
	
	@Autowired
	private TTimedTaskContactDao tTimedTaskContactDao;

	@Override
	public List<TTimedTaskContact> findByTaskId(String taskId) {
		List<TTimedTaskContact> list = null;
		try {
			list = tTimedTaskContactDao.getByTaskId(taskId);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return list;
	}

}
